package com.smartstate.EnvironmentMonitor.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.Date;

@Data
@TableName("e_dhu0005")
@ApiModel(description = "报表数据格式")
public class Report implements Serializable{

    @ExcelProperty("时间")
    @ColumnWidth(value = 25)
    @ApiModelProperty(value = "日期时间")
    @TableField(value = "dateTime")
    private Date dateTime;

    @ExcelIgnore
    @ApiModelProperty(value = "楼宇id")
    @TableField(value = "deviceId")
    private String deviceId;

    @ExcelIgnore
    @ApiModelProperty(value = "objId")
    @TableField(value = "objId")
    private String objId;

    @ExcelIgnore
    @ApiModelProperty(value = "报表id")
    @TableField(value = "uid")
    private String uid;

    @ExcelProperty("温度/℃")
    @ColumnWidth(value = 15)
    @ApiModelProperty(value = "温度/℃")
    @TableField(value = "temperature")
    private Float temperature;

    @ExcelProperty("湿度/％")
    @ColumnWidth(value = 15)
    @ApiModelProperty(value = "湿度/％")
    @TableField(value = "humidity")
    private Float humidity;

    @ExcelProperty("尘埃粒子0.5国际颗粒数/万pc/m3")
    @ColumnWidth(value = 40)
    @ApiModelProperty(value = "尘埃粒子5.0 / 万颗/m³")
    @TableField(value = "longParticle")
    private Float longParticle;

    @ExcelProperty("尘埃粒子50国际颗粒数/万pc/m3")
    @ColumnWidth(value = 40)
    @ApiModelProperty(value = "尘埃粒子0.5 / 万颗/m³")
    @TableField(value = "littleParticle")
    private Float littleParticle;

    @ExcelProperty("室内静压/Pa")
    @ColumnWidth(value = 20)
    @ApiModelProperty(value = "静压/Pa")
    @TableField(value = "staticPressure")
    private Float staticPressure;

    @ExcelProperty("露点/℃")
    @ColumnWidth(value = 15)
    @ApiModelProperty(value = "露点/℃")
    @TableField(value = "dewPoint")
    private Float dewPoint;

}
